package com.hsy.crm.web.domain.entity;

import com.hsy.crm.web.domain.cm.Validate;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name="sys_role_menu")
public class RoleMenu extends BaseEntity{

    @Validate
    @Column(length = 19)
    private Long roleId;

    @Validate
    @Column(length = 19)
    private Long menuId;

    @Column(length = 19)
    private Long companyId = -1L;

    public RoleMenu() {
    }

    public RoleMenu(Long id, Long roleId, Long menuId, String customerId) {
        this.roleId = roleId;
        this.menuId = menuId;
        this.setId(id);
        this.setCustomerId(customerId);
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }
}
